package program;

import java.math.*;

import basicPackage.Direction;
import basicPackage.Temperature;

import dungeon.NormalSquare;
/**
 * In this program, 2 squares are created and merged.
 * The status of the 2 squares is printed before and after the merge.
 * 
 * @author 	Frederik Moyaert and Laurens Vanderstraeten
 * 			2de Bach. Burgerlijk Ingenieur, wtkcws
 */
public class ProgramSquare {
	public static void main(String[] args) {
		NormalSquare firstSquare = new NormalSquare(new Temperature(150),new BigDecimal("59.01"),true);
		NormalSquare secondSquare = new NormalSquare (new Temperature(40),new BigDecimal("89.90"),false);
		System.out.println("Square 1 before merging:");
		firstSquare.print();
		System.out.println("Square 2 before merging:");
		secondSquare.print();
		firstSquare.connectToSquare(Direction.EAST,secondSquare);
		System.out.println("Square 1 after merging:");
		firstSquare.print();
		System.out.println("Square 2 after merging:");
		secondSquare.print();
	}
}
